{% if form %}
<form action="/nearsight_upload" method="post" enctype="multipart/form-data">
    {{ form }}
    <input type="submit" value="Submit" />
</form>
{% endif %}